import request from '@/utils/request'

// 查询表单设置列表
export function busSetlist(query) {
  return request({
    url: '/flowable/busSetup/list',
    method: 'get',
    params: query
  })
}

// 新增表单设置
export function busSetAdd(data) {
  return request({
    url: '/flowable/busSetup',
    method: 'post',
    data:data
  })
}

// 编辑表单定义
export function busSetUpdate(data) {
  return request({
    url: '/flowable/busSetup',
    method: 'put',
    data:data
  })
}


// 查询表单设置列表
export function list(query) {
  return request({
    url: '/flowable/busForm/list',
    method: 'get',
    params: query
  })
}

// 新增表单设置
export function add(data) {
  return request({
    url: '/flowable/busForm',
    method: 'post',
    data:data
  })
}

// 编辑表单定义
export function update(data) {
  return request({
    url: '/flowable/busForm',
    method: 'put',
    data:data
  })
}

// 表单定义查看
export function detail(id) {
  return request({
    url: `/flowable/busForm/${id}`,
    method: 'get'
  })
}

// 表单定义查看
export function deleteRow(id) {
  return request({
    url: `/flowable/busForm/${id}`,
    method: 'delete'
  })
}




